//
//  RZQFindMoreCollectionCell.m
//  OurMoon
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 sc. All rights reserved.
//

#import "RZQFindMoreCollectionCell.h"
#import "FitHeader.h"
#import <UIImageView+WebCache.h>
@implementation RZQFindMoreCollectionCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _label = [[UILabel alloc]init];
        [self.contentView addSubview:_label];
       _imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 60 * FitWidth, 40 * FitHeight)];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    [_imageView sd_setImageWithURL:[NSURL URLWithString:_moreData.image]];
    _label.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    [_label addSubview:_imageView];
    _label.text = _moreData.title;
    _label.layer.borderWidth = 2.0;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
